package cn.com.bluemoon.daps.api.sys;

import cn.com.bluemoon.daps.api.sys.factory.RemoteSysConfigServiceFallbackFactory;
import cn.com.bluemoon.daps.common.constant.ServiceNameConstants.DapsApiSystem;
import cn.com.bluemoon.daps.common.domain.ResultBean;
import cn.com.bluemoon.daps.system.entity.DapSystemConfigSandbox;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 配置服务接口
 *
 * @author Jarod.Kong
 * @date 2020/12/21 14:09
 */
@FeignClient(value = DapsApiSystem.SERVICE, fallbackFactory = RemoteSysConfigServiceFallbackFactory.class)
@RequestMapping(DapsApiSystem.BASE_URI + DapsApiSystem.API_CONFIG)
@ApiIgnore
public interface RemoteSysConfigService {
    @GetMapping("")
    @ApiOperation("获取系统配置-最新的一个沙箱环境")
    public ResultBean<DapSystemConfigSandbox> sandboxConfig();

}
